package com.daocheng.dc.book.user.biz.enums;

import com.daocheng.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName ResponseCodeEnum
 * @author: 稻城
 * @date: 2025/3/17
 * @Version 1.0
 * @description: TODO
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {

    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("USER-10000", "出错啦，后台小哥正在努力修复中..."),
    PARAM_NOT_VALID("USER-10001", "参数错误"),

    // ----------- 业务异常状态码 -----------
    NICK_NAME_VALID_FAIL("USER-20001","昵称请设置2-24个字符，不能使用@《/等特殊字符"),
    DC_BOOK_ID_VALID_FAIL("USER-20002", "稻城书号请设置6-15个字符，仅可使用英文（必须）、数字、下划线"),
    SEX_VALID_FAIL("USER-20003", "性别错误"),
    INTRODUCTION_VALID_FAIL("USER-20004", "个人简介请设置1-100个字符"),
    UPLOAD_FILE_FAIL("USER-20005", "上传文件失败"),
    UPLOAD_BACKGROUND_FAIL("USER-20006", "上传背景图失败"),
    FOUND_USER_FAIL("USER-20007", "未找到用户"),
            ;
    ;

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;

}
